package com.example.tiantian.clock;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * ���ӽ�����
 * 
 * @author Frank
 *
 */
public class AlarmReceiver extends BroadcastReceiver {

    private final static String INTENT_EXTRA_ALARMTIME = "alarmTimw";

    @Override
    public void onReceive(Context context, Intent intent) {
        long time = intent.getLongExtra(INTENT_EXTRA_ALARMTIME, System.currentTimeMillis());
        Intent newIntent = new Intent(context, AlarmActivity.class);
        newIntent.putExtra(INTENT_EXTRA_ALARMTIME, time);
        newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(newIntent);
    }

}
